package org.snail.other.service;

import org.snail.exception.BaseException;
import org.snail.exception.EmpException;
import org.snail.exception.GroupException;
import org.snail.other.bean.GroupCondition;
import org.snail.other.bean.GroupDO;

import java.util.List;
import java.util.Map;

public interface GroupService {
    /**
     * @function 添加群组对象
     * @param group  传入对象GroupDO
     */
    public void  saveGroup(GroupDO group) throws EmpException;

    /**
     * 按条件分页查询
     * @param groupCondition
     * @return
     * @throws GroupException
     */
    public Map<String,Object> findAllGroupWithPage(GroupCondition groupCondition) throws BaseException;
    public List<GroupDO> findAllGroup(GroupCondition groupCondition) throws GroupException;

    /**
     * 以findEmpByGroupName为条件查询所有员工
     * @param groupCondition
     * @return
     */
    public Map<String, Object> findEmpByGroupName(GroupCondition groupCondition);

}